package com.lwc.cfdns.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.lwc.cfdns.pojo.bo.system.NoticeBO;
import com.lwc.cfdns.pojo.dto.system.NoticeDTO;
import com.lwc.cfdns.pojo.entity.SystemNotice;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lwc.cfdns.pojo.vo.system.NoticeVO;

import java.util.Map;

/**
 * @author spring
 * @description 针对表【cfdns_system_notice(通知公告表)】的数据库操作Service
 * @createDate 2023-06-05 14:24:11
 */
public interface SystemNoticeService extends IService<SystemNotice> {

    /**
     * 创建
     *
     * @param noticeDTO
     * @return Map<String, Object>
     * @throws
     * @version 1.0.0
     * @author luwc
     * @time 2023/6/5 14:34:34
     */
    Map<String, Object> create(NoticeDTO noticeDTO);

    /**
     * 修改
     *
     * @param noticeDTO
     * @return Map<String, Object>
     * @throws
     * @version 1.0.0
     * @author luwc
     * @time 2023/6/5 14:36:02
     */
    Map<String, Object> update(NoticeDTO noticeDTO);

    /**
     * 详情
     *
     * @param id
     * @return NoticeVO
     * @throws
     * @version 1.0.0
     * @author luwc
     * @time 2023/6/5 14:39:06
     */
    NoticeVO view(Long id);

    /**
     * 删除
     *
     * @param ids
     * @return Map<String, Object>
     * @throws
     * @version 1.0.0
     * @author luwc
     * @time 2023/6/5 14:41:13
     */
    Map<String, Object> delete(String ids);

    /**
     * 列表
     *
     * @param noticeBO
     * @return IPage<SystemNotice>
     * @throws
     * @version 1.0.0
     * @author luwc
     * @time 2023/6/5 14:44:34
     */
    IPage<SystemNotice> lists(NoticeBO noticeBO);
}
